<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" crossorigin="anonymous">
</head>
<body>
<form role="form" action="login.html" class="form-horizontal" method="post">
    <div style="width: 100%; padding-bottom: 10px">
        <img src="img" alt="" style="width: 150px; height: 150px; margin: 0 auto; display: block">
    </div>

    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">名字</label>
        <div class="col-sm-10">
            <input type="text" name="name" class="form-control" id="firstname" placeholder="请输入名字">
        </div>
    </div>

    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" name="password" class="form-control"  id="Password" placeholder="请输入密码">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
                <label>
                    <input type="checkbox">请记住我
                </label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default" value="qq">登录</button>

            <button type="submit" class="btn btn-default"><a href="reg">注册</a></button>
        </div>
    </div>
</form>
<style>
body{
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     height: 100%;
     position: fixed;
     background: #a1a0a0;
 }
.form-horizontal{
    width: 666px;
    padding: 25px;
    background: aliceblue;
    border-radius: 20px;
}
</style>
</body>
</html>